public class Basic06 {
    public static void main(String[] args) {
        /**
         * 需求: 实现两个变量的数据交换
         *
         * int a = 10;
         * int b = 20;
         */
        Integer a = 10;
        Integer b = 20;
        int []i = Switch(a,b);
        a = i[0];
        b = i[1];
        System.out.println("a:"+a+"b:"+b);

    }
    public static int[] Switch(Integer a ,Integer b){
        int  t = a;
        a = b;
        b = t;
        return new int[]{a,b};
    }
}
